home *** CD-ROM | disk | FTP | other *** search
/ CD-ROM Today - The Disc! 5 / CD-ROM Today - The Disc (Issue 5)(November 1994).ISO / mac / DHA demo / Don Norman Folder / Don Norman demo / Don Norman demo.rsrc / OWdf_11780_Map.def < prev    next >
Text File  |  1994-09-21  |  12KB  |  589 lines

  1. WINDOWPROPERTIES
  2. NAME:Map
  3. CLOSESCRIPT:showmap
  4. USELOCALRECTS:true
  5. RECT:2,32,57,326
  6. COLLAPSEDRECT:100,121,250,120
  7. HSCROLL:false
  8. VSCROLL:false
  9. GROWICON:false
  10. SCROLL:0,0
  11. COLLAPSED:false
  12. WANTSIDLETIME:true
  13. ANIMATEDCURSORID:0
  14. DONTERASE:false
  15. NEVERSELECT:false
  16. USEPALETTEID:0
  17. CURSOR:0
  18. IDLESCRIPT:
  19. USERDATA:
  20. SELECTSCRIPT:
  21. PUTFILEDIALOGID:4500
  22. SAVEBEFORECLOSING:true
  23. ISCOLLAPSABLE:false
  24. LIMITWINDOWRECT:true
  25. SAVEMETHOD:Resource
  26. SAVECHANGES:true
  27.  
  28. PICTURE
  29. NAME:Picture1
  30. VISIBLE:true
  31. SCRIPT:
  32. CURSOR:128
  33. TYPE:Resource
  34. PATH:TOC
  35. TOPLEFT:0,0
  36. RECT:0,0,595,416
  37. FITTOFRAME:false
  38. HASFRAME:false
  39. MASK:false
  40. SCROLL:0,0
  41. TRIMRECT:-1,-1,-1,-1
  42. USERDATA:
  43. INKMODE:srcCopy
  44. COLORTABLEID:0
  45. DITHER:false
  46.  
  47. PICTURE
  48. NAME:Col2
  49. VISIBLE:true
  50. SCRIPT:
  51. CURSOR:128
  52. TYPE:Resource
  53. PATH:
  54. TOPLEFT:194,-100
  55. RECT:194,-100,395,-126
  56. FITTOFRAME:false
  57. HASFRAME:false
  58. MASK:false
  59. SCROLL:0,0
  60. TRIMRECT:-1,-1,-1,-1
  61. USERDATA:
  62. INKMODE:srcCopy
  63. COLORTABLEID:0
  64. DITHER:false
  65.  
  66. PICTURE
  67. NAME:Col3
  68. VISIBLE:true
  69. SCRIPT:
  70. CURSOR:128
  71. TYPE:Resource
  72. PATH:TOC3.3
  73. TOPLEFT:395,-2
  74. RECT:395,-2,594,348
  75. FITTOFRAME:false
  76. HASFRAME:false
  77. MASK:false
  78. SCROLL:0,0
  79. TRIMRECT:-1,-1,-1,-1
  80. USERDATA:
  81. INKMODE:srcCopy
  82. COLORTABLEID:0
  83. DITHER:false
  84.  
  85. PICTURE
  86. NAME:ColH3
  87. VISIBLE:true
  88. SCRIPT:beep┬
  89. beep
  90. CURSOR:128
  91. TYPE:Resource
  92. PATH:TOCH3.3
  93. TOPLEFT:396,0
  94. RECT:396,0,595,7
  95. FITTOFRAME:false
  96. HASFRAME:false
  97. MASK:false
  98. SCROLL:0,-2
  99. TRIMRECT:-1,-1,-1,-1
  100. USERDATA:
  101. INKMODE:srcCopy
  102. COLORTABLEID:0
  103. DITHER:false
  104.  
  105. TEXT
  106. NAME:Text1
  107. VISIBLE:true
  108. SCRIPT:put @WindowName into wn┬
  109. put item 1 of @ClickChunk - 1 into t┬
  110. if t > 9 then subtract 1 from t┬
  111. if t < 16┬
  112. then┬
  113. global col2choice,col3choice┬
  114. put t into col2choice┬
  115. set the lockscreen of window wn to true┬
  116. put item t of "0,27,46,65,84,103,122,141,160,198,217,236,255,274,293,312" into col2top┬
  117. put item t of "26,45,64,83,102,121,140,159,197,216,235,254,273,292,311,330" into col2bottom┬
  118. put item t of "-2,-29,-48,-67,-10,-29,-48,-67,0,-10,-29,-10,-29,-48,-67" into col2scroll┬
  119. set the col2_path of window wn to item t of  "TOC2.1,TOC2.1,TOC2.1,TOC2.1,TOC2.2,TOC2.2,TOC2.2,TOC2.2,TOC2.3,TOC2.4,TOC2.4,TOC2.5,TOC2.5,TOC2.5,TOC2.5"┬
  120. put item t of  ",,,TOC3.1,TOC3.2,TOC3.3,TOC3.4,TOC3.5,TOC3.6,,,,,,," into col3path┬
  121. if col3path = ""┬
  122. then put 0 into col3choice┬
  123. else put -1 into col3choice┬
  124. get "194,"&col2top&",395,"&col2bottom┬
  125. put "set the col2_rect of window wn to"&"e&it"e into setrect┬
  126. do setrect┬
  127. get "0,"&col2scroll┬
  128. put "set the col2_scroll of window wn to"&"e&it"e into setscroll┬
  129. do setscroll┬
  130. if col3path<>""┬
  131. then┬
  132. put the rect of window wn into r┬
  133. put (item 1 of r) + 594 into item 3 of r┬
  134. set the col3_path of window wn to col3path┬
  135. else┬
  136. put the rect of window wn into r┬
  137. put (item 1 of r) + 394 into item 3 of r┬
  138. end if┬
  139. set the colh3_visible of window wn to false┬
  140. set the lockscreen of window wn to false┬
  141. if the rect of window wn <> r┬
  142. then set the rect of window wn to r┬
  143. set the lockscreen of window wn to false┬
  144. send redrawwindow to window wn┬
  145. if col3choice=0┬
  146. then┬
  147. gochapter item col2choice of "2,3,4,,,,,,,61,62,64,67,73,74"┬
  148. else┬
  149. mapjump col2choice,col3choice┬
  150. end if┬
  151. end if
  152. CURSOR:128
  153. TYPE:Describe
  154. PATH:@StackPath:Sample Text:myTextFile
  155. RECT:194,7,394,450
  156. HASFRAME:false
  157. INSET:0
  158. TRANSPARENT:true
  159. EDITABLE:false
  160. SELECTABLE:false
  161. PAGE:0
  162. NUMBEROFPAGES:2
  163. SCROLL:0,0
  164. HASVSCROLL:false
  165. LINEHEIGHTFONTASCENT:-1,-1
  166. SELECTION:32,31
  167. DEFAULTFONT:Palatino
  168. DEFAULTSIZE:17
  169. DEFAULTSTYLE:plain
  170. TEXTDATA:┬
  171. a
  172. USERDATA:
  173. MOVEMOUSETICKS:0
  174. ALIGNMENT:Default
  175. PAGEBREAKTABLE:1┬
  176. 24
  177.  
  178. TEXT
  179. NAME:Text2
  180. VISIBLE:true
  181. SCRIPT:put item 1 of @ClickChunk - 1 into t┬
  182. global col2choice,col3choice┬
  183. put t into col3choice┬
  184. put @WindowName into wn┬
  185. put the text2_userdata of window wn into wheretogo┬
  186. get item col3choice of line col2choice of wheretogo┬
  187. if it <> "" and it <> "┬"┬
  188. then┬
  189. set the lockscreen of window wn to true┬
  190. get the col3_path of window wn┬
  191. put "H" before char 4 of it┬
  192. set the colh3_path of window wn to it┬
  193. get "396,"&(t*19)-12&",595,"&(t*19)+7┬
  194. if item 2 of it < 19 then put 0 into item 2 of it┬
  195. set the colh3_rect of window wn to it┬
  196. get "0,"&((t-1)*19)*-1┬
  197. if item 2 of it > -19┬
  198. then put -2 into item 2 of it┬
  199. else subtract 9 from item 2 of it┬
  200. set the colh3_scroll of window wn to it┬
  201. set the colh3_visible of window wn to true┬
  202. set the lockscreen of window wn to false┬
  203. send redrawwindow to window wn┬
  204. get item col3choice of line col2choice of wheretogo┬
  205. if col2choice <> 9┬
  206. then gochapter it┬
  207. else gopage it +1012┬
  208. --mapjump col2choice,col3choice┬
  209. end if
  210. CURSOR:128
  211. TYPE:Describe
  212. PATH:@StackPath:Sample Text:myTextFile
  213. RECT:395,7,595,450
  214. HASFRAME:false
  215. INSET:0
  216. TRANSPARENT:true
  217. EDITABLE:false
  218. SELECTABLE:false
  219. PAGE:0
  220. NUMBEROFPAGES:2
  221. SCROLL:0,0
  222. HASVSCROLL:false
  223. LINEHEIGHTFONTASCENT:-1,-1
  224. SELECTION:25,24
  225. DEFAULTFONT:Palatino
  226. DEFAULTSIZE:17
  227. DEFAULTSTYLE:plain
  228. TEXTDATA:┬
  229. a
  230. USERDATA:┬
  231. 6,7,┬
  232. 10,11,12,13,14,15,16,17,18,┬
  233. 20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,┬
  234. 39,40,41,42,43,44,45,46,47,48,49,50,51,┬
  235. 52,53,54,55,56,57,58,┬
  236. 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,
  237. MOVEMOUSETICKS:0
  238. ALIGNMENT:Default
  239. PAGEBREAKTABLE:1┬
  240. 24
  241.  
  242. TRANSPARENTBUTTON
  243. NAME:Map
  244. VISIBLE:true
  245. SCRIPT:set the map_ISTRANSPARENT of window @WindowName to false┬
  246. if width of window @WindowName > 55┬
  247. then┬
  248. get the rect of window @WindowName┬
  249. put item 1 of it + 55 into item 3 of it┬
  250. put item 2 of it + 294 into item 4 of it┬
  251. set the rect of window @WindowName to it┬
  252. else┬
  253. set cursor to watch┬
  254. positionmap true┬
  255. set cursor to browse┬
  256. end if┬
  257. set the map_ISTRANSPARENT of window @WindowName to true┬
  258.   set the lockscreen of window @WindowName to false┬
  259.   send redrawscreen of window @WindowName
  260. CURSOR:128
  261. RECT:3,5,53,30
  262. HASFRAME:false
  263. USERDATA:
  264. ISTRANSPARENT:true
  265. RGBFILLCOLOR:0,0,0
  266. INKMODE:Blend
  267.  
  268. TRANSPARENTBUTTON
  269. NAME:Page
  270. VISIBLE:true
  271. SCRIPT:set the page_ISTRANSPARENT of window @WindowName to false┬
  272. send dopage to this card┬
  273. set the page_ISTRANSPARENT of window @WindowName to true┬
  274.   set the lockscreen of window @WindowName to false┬
  275.   send redrawscreen of window @WindowName
  276. CURSOR:128
  277. RECT:3,35,53,60
  278. HASFRAME:false
  279. USERDATA:
  280. ISTRANSPARENT:true
  281. RGBFILLCOLOR:0,0,0
  282. INKMODE:Blend
  283.  
  284. TRANSPARENTBUTTON
  285. NAME:PrevPage
  286. VISIBLE:true
  287. SCRIPT:set the prevpage_ISTRANSPARENT of window @WindowName to false┬
  288. send goprev to this card┬
  289. set the prevpage_ISTRANSPARENT of window @WindowName to true┬
  290.   set the lockscreen of window @WindowName to false┬
  291.   send redrawscreen of window @WindowName
  292. CURSOR:128
  293. RECT:3,61,27,81
  294. HASFRAME:false
  295. USERDATA:
  296. ISTRANSPARENT:true
  297. RGBFILLCOLOR:0,0,0
  298. INKMODE:Blend
  299.  
  300. TRANSPARENTBUTTON
  301. NAME:NextPage
  302. VISIBLE:true
  303. SCRIPT:set the nextpage_ISTRANSPARENT of window @WindowName to false┬
  304. send gonext to this card┬
  305. set the nextpage_ISTRANSPARENT of window @WindowName to true┬
  306.   set the lockscreen of window @WindowName to false┬
  307.   send redrawscreen of window @WindowName
  308. CURSOR:128
  309. RECT:29,61,53,81
  310. HASFRAME:false
  311. USERDATA:
  312. ISTRANSPARENT:true
  313. RGBFILLCOLOR:0,0,0
  314. INKMODE:Blend
  315.  
  316. TRANSPARENTBUTTON
  317. NAME:Find
  318. VISIBLE:true
  319. SCRIPT:set the find_ISTRANSPARENT of window @WindowName to false┬
  320. send dofind to this card┬
  321. set the find_ISTRANSPARENT of window @WindowName to true┬
  322.   set the lockscreen of window @WindowName to false┬
  323.   send redrawscreen of window @WindowName
  324. CURSOR:128
  325. RECT:3,87,53,112
  326. HASFRAME:false
  327. USERDATA:
  328. ISTRANSPARENT:true
  329. RGBFILLCOLOR:0,0,0
  330. INKMODE:Blend
  331.  
  332. TRANSPARENTBUTTON
  333. NAME:Mark
  334. VISIBLE:true
  335. SCRIPT:set the mark_ISTRANSPARENT of window @WindowName to false┬
  336. send domark to this card┬
  337. set the mark_ISTRANSPARENT of window @WindowName to true┬
  338.   set the lockscreen of window @WindowName to false┬
  339.   send redrawscreen of window @WindowName
  340. CURSOR:128
  341. RECT:3,118,53,143
  342. HASFRAME:false
  343. USERDATA:
  344. ISTRANSPARENT:true
  345. RGBFILLCOLOR:0,0,0
  346. INKMODE:Blend
  347.  
  348. TRANSPARENTBUTTON
  349. NAME:PrevMark
  350. VISIBLE:true
  351. SCRIPT:set the prevmark_ISTRANSPARENT of window @WindowName to false┬
  352. send prevmark to this card┬
  353. set the prevmark_ISTRANSPARENT of window @WindowName to true┬
  354.   set the lockscreen of window @WindowName to false┬
  355.   send redrawscreen of window @WindowName
  356. CURSOR:128
  357. RECT:3,144,27,164
  358. HASFRAME:false
  359. USERDATA:
  360. ISTRANSPARENT:true
  361. RGBFILLCOLOR:0,0,0
  362. INKMODE:Blend
  363.  
  364. TRANSPARENTBUTTON
  365. NAME:NextMark
  366. VISIBLE:true
  367. SCRIPT:set the nextmark_ISTRANSPARENT of window @WindowName to false┬
  368. send nextmark to this card┬
  369. set the nextmark_ISTRANSPARENT of window @WindowName to true┬
  370.   set the lockscreen of window @WindowName to false┬
  371.   send redrawscreen of window @WindowName
  372. CURSOR:128
  373. RECT:29,144,53,164
  374. HASFRAME:false
  375. USERDATA:
  376. ISTRANSPARENT:true
  377. RGBFILLCOLOR:0,0,0
  378. INKMODE:Blend
  379.  
  380. TRANSPARENTBUTTON
  381. NAME:Backtrack
  382. VISIBLE:true
  383. SCRIPT:set the Backtrack_ISTRANSPARENT of window @WindowName to false┬
  384. send dort to this card┬
  385. set the Backtrack_ISTRANSPARENT of window @WindowName to true┬
  386.   set the lockscreen of window @WindowName to false┬
  387.   send redrawscreen of window @WindowName
  388. CURSOR:128
  389. RECT:3,170,53,207
  390. HASFRAME:false
  391. USERDATA:
  392. ISTRANSPARENT:true
  393. RGBFILLCOLOR:0,0,0
  394. INKMODE:Blend
  395.  
  396. TRANSPARENTBUTTON
  397. NAME:Orange
  398. VISIBLE:true
  399. SCRIPT:set the Orange_ISTRANSPARENT of window @WindowName to false┬
  400. send "colortext Orange" to this card┬
  401. set the Orange_ISTRANSPARENT of window @WindowName to true┬
  402.   set the lockscreen of window @WindowName to false┬
  403.   send redrawscreen of window @WindowName
  404. CURSOR:128
  405. RECT:3,228,27,248
  406. HASFRAME:false
  407. USERDATA:
  408. ISTRANSPARENT:true
  409. RGBFILLCOLOR:0,0,0
  410. INKMODE:Blend
  411.  
  412. TRANSPARENTBUTTON
  413. NAME:Blue
  414. VISIBLE:true
  415. SCRIPT:set the Blue_ISTRANSPARENT of window @WindowName to false┬
  416. send "colortext Blue" to this card┬
  417. set the Blue_ISTRANSPARENT of window @WindowName to true┬
  418.   set the lockscreen of window @WindowName to false┬
  419.   send redrawscreen of window @WindowName
  420. CURSOR:128
  421. RECT:3,249,27,269
  422. HASFRAME:false
  423. USERDATA:
  424. ISTRANSPARENT:true
  425. RGBFILLCOLOR:0,0,0
  426. INKMODE:Blend
  427.  
  428. TRANSPARENTBUTTON
  429. NAME:Green
  430. VISIBLE:true
  431. SCRIPT:set the Green_ISTRANSPARENT of window @WindowName to false┬
  432. send "colortext Green" to this card┬
  433. set the Green_ISTRANSPARENT of window @WindowName to true┬
  434.   set the lockscreen of window @WindowName to false┬
  435.   send redrawscreen of window @WindowName
  436. CURSOR:128
  437. RECT:29,249,53,269
  438. HASFRAME:false
  439. USERDATA:
  440. ISTRANSPARENT:true
  441. RGBFILLCOLOR:0,0,0
  442. INKMODE:Blend
  443.  
  444. TRANSPARENTBUTTON
  445. NAME:Clear
  446. VISIBLE:true
  447. SCRIPT:set the Clear_ISTRANSPARENT of window @WindowName to false┬
  448. send "colortext White" to this card┬
  449. set the Clear_ISTRANSPARENT of window @WindowName to true┬
  450.   set the lockscreen of window @WindowName to false┬
  451.   send redrawscreen of window @WindowName
  452. CURSOR:128
  453. RECT:3,270,53,290
  454. HASFRAME:false
  455. USERDATA:
  456. ISTRANSPARENT:true
  457. RGBFILLCOLOR:0,0,0
  458. INKMODE:Blend
  459.  
  460. TRANSPARENTBUTTON
  461. NAME:Yellow
  462. VISIBLE:true
  463. SCRIPT:set the Yellow_ISTRANSPARENT of window @WindowName to false┬
  464. send "colortext Yellow" to this card┬
  465. set the Yellow_ISTRANSPARENT of window @WindowName to true┬
  466.   set the lockscreen of window @WindowName to false┬
  467.   send redrawscreen of window @WindowName
  468. CURSOR:128
  469. RECT:29,228,53,248
  470. HASFRAME:false
  471. USERDATA:
  472. ISTRANSPARENT:true
  473. RGBFILLCOLOR:0,0,0
  474. INKMODE:Blend
  475.  
  476. TRANSPARENTBUTTON
  477. NAME:B
  478. VISIBLE:true
  479. SCRIPT:gochapter 8
  480. CURSOR:128
  481. RECT:66,85,174,101
  482. HASFRAME:false
  483. USERDATA:
  484. ISTRANSPARENT:true
  485. RGBFILLCOLOR:0,0,0
  486. INKMODE:subPin
  487.  
  488. TRANSPARENTBUTTON
  489. NAME:A
  490. VISIBLE:true
  491. SCRIPT:gochapter 1
  492. CURSOR:128
  493. RECT:66,10,174,26
  494. HASFRAME:false
  495. USERDATA:
  496. ISTRANSPARENT:false
  497. RGBFILLCOLOR:0,0,0
  498. INKMODE:subPin
  499.  
  500. TRANSPARENTBUTTON
  501. NAME:C
  502. VISIBLE:true
  503. SCRIPT:gochapter 59
  504. CURSOR:128
  505. RECT:66,162,188,193
  506. HASFRAME:false
  507. USERDATA:
  508. ISTRANSPARENT:true
  509. RGBFILLCOLOR:0,0,0
  510. INKMODE:subPin
  511.  
  512. TRANSPARENTBUTTON
  513. NAME:D
  514. VISIBLE:true
  515. SCRIPT:gochapter 60
  516. CURSOR:128
  517. RECT:66,199,141,217
  518. HASFRAME:false
  519. USERDATA:
  520. ISTRANSPARENT:true
  521. RGBFILLCOLOR:0,0,0
  522. INKMODE:subPin
  523.  
  524. TRANSPARENTBUTTON
  525. NAME:E
  526. VISIBLE:true
  527. SCRIPT:gochapter 63
  528. CURSOR:128
  529. RECT:66,238,141,256
  530. HASFRAME:false
  531. USERDATA:
  532. ISTRANSPARENT:true
  533. RGBFILLCOLOR:0,0,0
  534. INKMODE:subPin
  535.